package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 入库实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_preorder")
public class PreOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 入库编号*/
    @TableId(value = "pk_preOrderId", type = IdType.AUTO)
    private Integer preOrderId;

    /** 采购数量*/
    @TableField("p_inNum")
    private Integer inNum;

    /** 采购人编号*/
    @TableField("fk_userId")
    private Integer userId;

    /** 供应商编号*/
    @TableField("fk_factoryId")
    private Integer factoryId;

    @TableField(exist = false)
    private  Factory factory;

    /** 商品编号*/
    @TableField("fk_productId")
    private Integer productId;

    @TableField(exist = false)
    private  Product product;

    /** 采购人对象*/
    @TableField(exist = false)
    private  User user;


}
